<template>
    <div v-for="item in lb">
        <van-nav-bar title="列表" />
        <!-- 卡片 -->
        <van-card  :price="item.goods_price"  :title="item.goods_name"
            :thumb="item.goods_big_logo?item.goods_big_logo:'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg'" />
    </div>
</template>

<script setup>
import { searchApi } from '@/api/api';
import { ref } from 'vue';
let lb=ref([])
searchApi().then(res=>{
    console.log('商品列表',res);
    lb.value=res.data.message.goods;
    
})

</script>

<style lang="scss" scoped></style>